import { defineComponent, ref } from 'vue'
import { Spin } from 'ant-design-vue'
import './index.less'
import PropTypes from '@/utils/PropTypes'
export default defineComponent({
  name: 'SpinCom',
  props: {
    size: PropTypes.any().def('large'),
    tips: PropTypes.string().def('正在加载...'),
    height: PropTypes.number(),
  },
  setup(props) {
    return () => (
      <div class="spinCom" style={{ height: props.height + 'px' }}>
        <Spin size={props.size} tip={props.tips}></Spin>
      </div>
    )
  },
})
